//
//  LSYButton.h
//  TTClub
//
//  Created by xkun on 15/8/28.
//  Copyright (c) 2015年 TTClub. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, LSYButtonStyle){
    LSYButtonStyleImageTitleNomarl = 0,
    LSYButtonStyleImageTitleVertical = 1,
};

@interface LSYButton : UIButton

@property (nonatomic, assign)LSYButtonStyle lsyButtonStyle;//default is LSYButtonStyleImageTitleNomarl
@property (nonatomic, assign)BOOL  lsy_isFitTextWidth;
/**
 *  custom  up image down title button 
 *
 *  @param margin up space from down
 */
- (void)setUpImageAndDownTitleByMargin:(CGFloat)margin;

/**
 *  custom level title and image space
 *
 *  @param margin   margin description
 *  @param isNormal isNormal default YES image left title right NO title left image right
 */
- (void)setButtonTitleAndImageByMargin:(CGFloat)margin
                              isNormal:(BOOL)isNormal;



@end
